Updated Controller.php and disabled menu on error page