made changes to reflect if post has been published