beautify the result from ui to raw