Added an example of how one can create a dialog using widgets.