adding template cacheListener