change AgencyController.php