templating homepage