add widget.patchResource