Allow the dialog to be hidden