edit and update for post and comment