control for deleting edge