add check for localstorage implementation in autocomplete