Introduce a initWidgets plugin method.