add error activity + fixed offline feature