Before change the styles