SSP-2649 UI refine with show hide button, handles invalid TermCode and null Terms