Minor edit to get the idNumber on pin click