Make the dialog boxes closable.