move some code to social share helper/namespace