Improve button refreshing in file browser