add context menu to vertices and edges. add new edit dialoges. do some cleanup