Small change: make newWidgetId protected