Add method for clearing/resetting the undo stack