adding phase to pan gesture