Added event onWidgetCreated event handler