Fix for nav-secondary and Panel History Modal and Button group function