enhanced selection gestures logic