Replace main page with index page