improve offline/online view