improving code quality by recommendations in HomePageController