update tag and cat