refactoring post previews