added header and footer "defs" to page.py