more undo support in the edit window