change template controller mechanism