update template render pattern