refresh and add code