Add confirmation dialog on quit when there are unsaved changes