detect touch devices properly