-o-pretest - refactor route logic and generate HTML with collection