can generate pages from the list of cards
refactorings
more refactoring
999