refactored post template