Widgets class and mediator API