[Glossary] Moved updateLaTeX function so it's now executed after dialog is opened.