     backgroundView?.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleTopMargin
     
     scrollView.contentInset = UIEdgeInsetsMake(0, kMargin, 0, kMargin)
+    
+    tabView.backgroundColor = UIColor(white: 1, alpha: 0.4)
     addSubview(backgroundView!)
     addSubview(scrollView)
+    addSubview(tabView)
   }
   
   func pan(gesture: UIPanGestureRecognizer) {

    scrollView.frame = bounds
    scrollView.delegate = self
    backgroundView?.frame = CGRectMake(0, 0, bounds.size.width, superview!.bounds.size.height)
    layoutNotifications()
  }
  

    var frame = layoutViewFrameInView(view)
    frame.origin.x += kMargin
    frame.size.width -= kMargin * 2
    frame.origin.y += 10 // TODO
    frame.size.height -= 10  // TODO
    return frame
  }
  
