updated typeahead, adding css and custom event handling