Cleaned up footer code