Created autocomplete functionality that works with the backend.