adding onDrag event