Refactoring HomeController
Refactoring HomeController