page number formatting is now done in the list instead of the layout
pagebreak fixes
more work towards header and footer