update the panel style.