Move clickHandler out of canvas object