logic for buttons social media