activity button refresh page working on no connection