adding share functionality