convert to html attachment/long doc format and update styling