Update the number of environments and enable the generate design button if the user adds an environment to an existing trial with measurement data

BMS-81

Reviewer: Daniel Villafuerte