added template management