add gesture detect.