Refactor index.html.erb into partials