dialog on unsaved changes. This can be disabled if the user wishes to do so. Also allows the user to configure if the editor can be closed by hitting the "ESC" key.