adding app offline error handling