Make sharing popups and onclick event to avoid popup issues.