added pan gesture