moved view caching to lexy class