Extracted mainPage.php into a sublayout.