Updated the admin controller