added pinch-zoom and pan gestures