Added autocomplete and search filter function