change apply template