Share link  code improvements