added functionality to create local widgets directly from an existing node
which makes the widget roundtrip complete