fixed bugs in html code