move processWIDChange to be local to the onMapClick event.