improved header and footer appearance for smaller sizes