Add code for widgets.