Update CommonController.php