Changes in controller.php