fix admin controller delteted dumplicating code