refactoring index.html.erb