fixed and add the touch sensor detector