change the style of middle type