added connectivity manager

class to check internet connection