Dynamically switch measurements tab depending on create / edit trial states

Reviewer: Dan V.
Issue: N/A