Added HTML templating for saving the files