added the option to keep html file