style typeahead and add event callback