update Tags and Attrs