have better detection of when to show the search box page