Update HomepageController.php