updated style and markup for writedown and header templates