update fromatting of text