Saving history on edge deletion