fix bug where undo/redo tool-bar didn't update UI after change was made