fixed problems with footer and formatting