account for searchbar when figuring out what is visible