Implemented UNDO effect