deleted commented code; page definitions is accepted from caller
Now accepts an array of pages to define