fix mainPage for production