improvement and bug fix for 'share link'