Fix toggling issues with share link button