share functionality updated