added template selector
added template selector