update categories and tags