making clickable substring that match glossary item work + change of design