Finalize export in html