fix touch screen commands for setting mode and detect region