record postentry in Post
some helper functions in postentry
helper functions in Post to edit post