added variable to store if request dialog is active or opening/closing