added drag node functionality