can now close dialogs