update to using CView object