refactored index.html.erb into partials, and fixed the "phantom lozenge" bug