fix closing dialogs on outside tap