Added default values for the two automatic methods of closing the dialog (pressing escape and clicking the document)