refactor index.html.erb