save changes before adding navigation