Changed check wifi to check network. Added network permission-manifest