added autodetect for touch event support