working on gui for polyline