makes the html page functional