code clean up on index.html.erb