adding drag behaviour