rewrite updateAction & add createCommentAction