adding touch logic.