update style of badge