Editor Undo function implemented