refactor index page into partials