[GUI] Adding undo/redo menu auto enable