saving changes before switching branches