viewer and view class