add drag handler to nodes