added a segmented control to SearchBar - code needs to be formated correctly and likely some vars etc need to be set to snake_case