implement callback onGesturePerformed