saving before changing the routes