clearing the badge client side