add drag dialog function for dialog component