made search work with local storage.