Update file refresh logic