updating view class