adds location to index.html.erb and makes accessible