update tag document