react to view class changes