Adding feature to control enable/disable for each language
Fix checking of last page that could allow infinite looping if page navigation is not found in document