check network status on app start