implement navbar.