fixed the type and the style on the active tab