Allow passing a class to all widgets with runWidgets