social sharing component refactoring