checking if online or not