replaced some hardcoded drag/drop event handlers with jquery.on()