Created base template and refactored index page.