separating the generation of html from mainLandingPageController