added function to detect touch-devices