Implemented group graph widget.
Fix issue destroying OptionDialog instances: they weren't before.