updated history and undo

fix the bug on history and undo due to change of notify info