adding and removing a polyline to polylines works now