Added show_hide functionality, added table grouped by terms