doing header and footer and comment switch