updating to use template-init and template-render