implement onClick for buttons in points popup