prevent execution for empty dialogs