updated routes.rb and created controllers actions