updated offline & online in action bar