adds new post, edits old posts