add create and update categories to posts