split out 'html.erb' into partials to simplify index.html.erb