Added popup with error message when having no network connection