Adding widget base class