Enabling communication between the widget and the SDK