only show search bar when more than 7 documents