Touch logic and functionality