Added code for AdminController