I would run `getPreviewWidgetId()` here, instead of passing the result into the function