updating home page to use templates