update web counter on refresh