Adding events to canvas