added click listener to canvas