select event for typeahead