init admin class in main file