moving the code to the custom footer.inc, closes #116