adding support for caching view