check navbar visibility