building up the new html