creating a final vertion of the html