commit unsaved changes