search bar style and range logic