Fixing building of footer to make it inline with header functionality