refactor home page view to use template
front page HTML now generated from template