change in html and adding functions