Implement checking internet connection for all pages

Implement checking internet connection for all pages