Add base widget class