Added gestures handling