Added callbacks for point selection