added reference to a view class in the element.