distance plot actually plots distance
re-render points when changing edit state