added header and footer to post template