Update HomeController.cs

refactor home controller