cleans up footer code