added network connection check on app start