calculate page based on perPage; only ask for more pages if they exist