refactored the drag event bindings.