update page number handling