Refactored and cleaned up some of the code in HomeController.
Merge branch 'frontend'