Changes made to AdminController.php