modified page refresh script