Adds base class for widgets