add onMoveEnd event