Navbar context

Fixed the error and as far as I can tell LGTM