completed html gen for results and translation of it to complete