Edit contours