Fixing issues in terms panel

summery
1) Fix the long right and left legend in the terms panel
2) Fix tokenized field