Worked out a class to easily include subpages/content and put the footer in a function