update page index