add class for View and ViewWidget