view for adding points and creating a linesegment