mainPage fixing