Adding name to movable shape

I have 3 draggable shapes on my subplot.To distingush them i add annotation using plotly.afterplot function. So whenever a shape is drag and dropped, i get position using parameter(eg :_fullLayout.shapes[0].x0) and assign the x value to corresponding annotation’s xvalue. But the problem is when shape is on drag, respective annotation would be at previous position. I want annotation to move along with shape. Is that possible?