add template of case and header, footer