add pan gesture recognizer for drag