trying to fix the weird navbar loading problem