Added feature for selecting points on the histogram