Added touch/mouse support to autocomplete