Added listner for clicking on canvas