navbar now displays links accordingly