Added support for when there is no network connection in the app