refactor home page.