Added canvas click event handler