fixed navbar rendering in middle of page bug