Adding the widget to the code