Internet connection checked moved to own class and added check before opening allowed numbers