Refactor social links widgets