Added pan gesture recognizer