add generating output result and save the text in output box