Tab refreshes browse when switching back to it