hide navbar accordingly.