refactoring AdminController and serviceCongif files