added functionality to the share button