Updated Glossary Functionality as per the array logic