update anchor and style.