small changes made to routes.rb and controller files