handling and displaying network error