hrgraph: better gui-handling. remove notused code