removing unesued code from Admin controller.