* Enabled again the footer configuration.
* Refactoring code to get the header as suggested by @hvelarde.