added editPost API