updated how search bar width is handled