update dirents or repos data automatically

fix add background auto-update per 5 mins (no UI refresh) #179
Is it correct to return here? If we can't refresh because the network is down, we should use cached data instead.