adding routes and models