Template Admin class

Implemented template admin class and fixed template admin class.