Adding hover and text-click functionalty on canvasses