Changed the innerHTML fields to html