   onClose: ->
   
   add: (control) ->
-    @window.add control
+    @content.add control
     @controls.push control
   
   clear: ->
     for control in @controls
-      @window.remove control
+      @content.remove control
     @controls = []
     
   click: (callback) ->

    
    @window.addEventListener('focus', @focus)
    @window.addEventListener('close', @onClose)
    

  focus: (e) =>

  onPortrait: ->
    
  onLandscape: ->

  addHeader: (header) ->
    @window.add(header)
    @content.top = header.height