Completed refactoring of index page.