match swipe gestures to logic