adding check for internet in th begining of each activity