fixed some navbar leftover child popping logic