typeahead working but with some problem