Add a view class.