Updated creation of a widget in OWF