updated graph view to use graphref. undo stack broken