Added code to header/footer and tested