update style on warning