template controll