add shape-path relation class and paths's update function when dragging shapes