add max page number