Navbar Bugfix

Fixes bugs when going back to map/tabular view when coming from
glossary/code section