Added namespace declaration to MainController.php.