bug with recursive call showNavbar