navbar now works correctly