Changed routes to using the resources keyword