global link click handler