1. update gesture recoginition
2. add action check function