fixed tricky navbar issue finally