Creation of the widget controller