construct view class