edit controller files and modified routes.rb