save changes before will_pagination