fixed a problem with display ref, added the canvas element, changed the type for id and class HTML attributes, added id to some HTML elements