update all unsaved changes