add drag function to annotation panel