refactored autocomplete views.