update for autocomplete to get the categories to work