canvas exit on click