Change namespaces in template