refresh template