Create setFooter macro to dynamically create footer and set active page.