change refresh logic