change the style of bar