add gesture recog and segment control