created header and footer for WMs.