Code

check for element modification before filling undo stack