Update refresh logic