added a reset method for the autocomplete