updates static text and text refs