dynamic header and footer, small css fixes