Coded add badge & remove badge.