remove widgetInstance usage in widgets