add post edit server code