adding in finalizing of the HTML page