Updated the controller.php