Added network connection checks in every main view.