fix error and main html file