Updating pagination number