     
     private let contentView = UIView()
     private let tableView = UITableView()
+    private let searchBarSeparator = UIView()
     
     public init(environment: Environment, courseID: String) {
         self.environment = environment

        searchBar.searchBarStyle = .Minimal
        searchBar.sizeToFit()
        
        tableView.tableHeaderView = searchBar
        
        contentView.snp_makeConstraints {make in
            make.edges.equalTo(self.view)
        }
        
        tableView.snp_makeConstraints { make -> Void in
            make.edges.equalTo(self.contentView)
        }
        
        // Register tableViewCell

        self.navigationItem.backBarButtonItem = UIBarButtonItem(title: " ", style: .Plain, target: nil, action: nil)
        
        view.backgroundColor = self.environment.styles.standardBackgroundColor()
        searchBarSeparator.backgroundColor = OEXStyles.sharedStyles().neutralBase()
        
        self.view.addSubview(contentView)
        self.contentView.addSubview(tableView)
        self.contentView.addSubview(searchBar)
        self.contentView.addSubview(searchBarSeparator)
        
        // Set up tableView
        tableView.dataSource = self
        tableView.delegate = self
        
        searchBar.placeholder = OEXLocalizedString("SEARCH_ALL_POSTS", nil)
        searchBar.delegate = self
