         }
         
         refineLabel.snp_makeConstraints { (make) -> Void in
-            make.leading.equalTo(view).offset(20)
-            make.top.equalTo(view).offset(10)
+            make.leading.equalTo(contentView).offset(20)
+            make.top.equalTo(contentView).offset(10)
             make.height.equalTo(20)
         }
         
         headerButtonHolderView.snp_makeConstraints { (make) -> Void in
             make.leading.equalTo(refineLabel.snp_trailing)
-            make.trailing.equalTo(view)
+            make.trailing.equalTo(contentView)
             make.height.equalTo(40)
-            make.top.equalTo(view)
+            make.top.equalTo(contentView)
         }
         
         var buttonTitle = NSAttributedString.joinInNaturalLayout(

        
        self.navigationItem.title = context.navigationItemTitle
        self.navigationItem.backBarButtonItem = UIBarButtonItem(title: " ", style: .Plain, target: nil, action: nil)
        loadController.setupInController(self, contentView: self.tableView)
        insetsController.setupInController(self, scrollView: tableView)
        refreshController.setupInScrollView(tableView)
        insetsController.addSource(refreshController)

        view.backgroundColor = self.environment.styles.standardBackgroundColor()
        
        view.addSubview(contentView)
        contentView.addSubview(refineLabel)
        contentView.addSubview(headerButtonHolderView)

        headerButtonHolderView.addSubview(filterButton)
        headerButtonHolderView.addSubview(sortButton)
