update comment code for post page