save autocomplete option to localstorage