several fixes to glossary item mode and searching
.