added an end to a route in index.rb