if no connection then activities loaded from offline table