Spatiotemporal regulation of collective cell behaviors in Drosophila