draw spline on click