A double-switch system regulates male courtship behavior in male and female Drosophila melanogaster