a workaround to make nextPage button only show up if there are more results