added initial handling to the search tab and search bar