Fix bug in display. Add term class in front end.