added some formatting and removed a bug from routes.rb file added render index