added network checking when app start