fix routes and links