changed the routes and nested resourses