Use single function to refresh all windows