add click event listener to all Widget classes