     @xhr.onerror = () ->
       onError() if onError
     @xhr.send(params)
+
     
+  noInternetEnable: =>
+    @settings.noInternetViewEnabled = true
+    if !@noInternetView?
+      @noInternetView = @create("NoInternetView")
     
-  checkInternet: ->
-    if(Ti.Network.online)
+    @checkInternet()
+    
+  noInternetDisable: =>
+    @settings.noInternetViewEnabled = false
+    @checkInternet()
+    
+  checkInternet: =>
+    if Ti.Network.online
       Ti.API.info('Welcome to the internet')
-      @noInternetView.window.close()
+      if @noInternetView?
+        @noInternetView.window.close()
     else
       Ti.API.info('Bloody hell, the network just DISSAPEARED!')
-      @noInternetView.window.open()+      if @noInternetView? && @settings.noInternetViewEnabled
+        @noInternetView.window.open()
      viewBackgroundGradient: null
      viewTitleBarColor: '#000000'
      debugMode: false
      internetRequired: true
    }, options)
    
    if @settings.googleAnalyticsID

    @xhr = Ti.Network.createHTTPClient({ timeout: 15000 })
    @includedFiles = []
    
    Ti.Network.addEventListener('change', (e) => @checkInternet())
    
  delay: (ms, func) -> setTimeout func, ms
  create: (className, options = {}) -> @classFactory.create(className, options)
