updated dragHandler