added a permission to the manifest so that the state of the wifi connection can be checked