implemented error dialog for no data connection