Refactor home page view to use a template
Refactor home page view to use a template