updated few codes

updated a feature that checks if the software is online and
sets a value o isOnline bool value as true or false depending upon that