fixing endless page to not keep going when there's no more pages