changed routes.rb to use index