modified routes to resources routes and member & collection routes and modified controllers and views accordingly