now modal is hiding when creating a new edge