Commiting unsaved edits