added template manager