Update application/controller.php