Completed the implementation for the search bar.