refactoring routes to use resources (step 10) done