add drag operating function