working on typeahead but doesn't work