refresh counter when we open the popup