clean up updateNewEdgeDialog method