updating touch logic