Fix broken references
Add ui test for plot detail edit add tree cancel

will verify issue #943.