Added lambda's to dialog on_close and on_quit.  Fixed a bug in grid_widget.