fix nav bar issue on pages other than home