Touch detection with modernize