Changed controller.php to its original form/codes, transferred code to app_controller.php