refactoring social buttons