Updated SearchBar.js to be functional