adding the ability to render multiple pages