added touch device detector