added a timer in internet_availiable() to only check for internet connection every 10 seconds if the internet was off.