add default arguments for "registerWidgets" method