make graph viewer into a widget

also, embed it in the connect viewer