update the style of main nav bar