typo fix : wrong connect id used and be smart about signals connected to windows