fix mainPage height on resize window