Joan,
This is good. Sometimes, it's worthwhile to address the need at the moment it occurs. Circulating around the room, asking specific students questions, or changing to pair share, small group discussion, or doing board work (student coming to white board for some exercise) are among the simple, easy to implement measures that can break the diengagement and reestablish focus.
Barry Westling