Making the controller for the admin view