validate phases inside period
Validate phase inside period
changing layout