template management working