change detection of mouse clicks, user must click on the canvas element