cleaned up footer code a bit