mapping the routes and models