add some functionality to templates/navbar.html