implementing checking internet and positioning state