added dragend event listener