update for post and category