added event listener for marker dragend
Added endShape()