Adding click events for external links