update last page to make api call