small code refactor in html code