update text and beautify json at all