set up routes and links