added popup for editing edges