preparation of the widget for generic use