modify mainPage layout