Refactor home page.