add error dialog if no network connection