Add the canvas to the html part of the code and colour it red if the button is turned on and green if is off. The GUI of the application should look like it is shown in the following figure: