adds sharing functionality