template manager