undo/redo button fix