disabled undo/reset buttons at appropriate times.