complete the controller of admin