change if condition of touchmode