Refactor html of new-attachments