[FIX] add a conditional statement on diplaying navbar