added recognition for some gestures