added handling for selection changes while worker was calculating