save last search in localStorage