updated model and controller for admin