Refactor root page.