Added permission to access wifi state
Added dialog for stating that failed to get internet connection