TabBarController class to check internet connectivity