change template selector on click