Implemented some of the API for a widget