Event listener to know when the widget is loaded