Refactored HomeController and routes