Preview undo/redo buttons disabled properly