updating page numbers and search bar