Added seperate vms for header and footer

Also added new boolean flag to show the header. Removed the macros for
header and footer.