add template manager