refactored front page template to decouple it from header