Removed some excess code in admin controller.