fixed offline bug and action bar display bug