add mainPage attribute in PageService