removed duplicate variable to check if request dialog is active