make function of share and changing text color depend on background color