created the view class