Template refresh working