added basic support for touch gestures