update UI and gesture