A few days before the Battle of Seven Pines , Johnson named Smith as a wing commander .
Whiting assumed operational command of the division during the battle .
A few days before the Battle of Seven Pines , Johnson named Smith as a wing commander and Whiting assumed operational command of the division during the battle .