Updated admin controller for mongoose