integrate click event with finding cp's