adding a global click checking