Index.erb code cleaning up