problem with display on mainPage