refactoring for newsletter rendering