update routes and update links