template render working