caching views in DOM