Adding nav bar functionality