simplified admin controller code