adding pan gesture