Added undo/redo for edges movements