fixed a few problems with sidebar and footer