added condition to check if device is touch device