add ego header and footer to MainController