add drag function
change drag action