improve: Make cwidget definition part of setOptions() again, but use closures this time