Footer code cleanup