add event listeners for point and sample sizes