refactor post previews