addded a remove polyline function on click