fixed print out and working on html

fixed print out and working on html