Improved and simplified loading of widgets.