added template selector