     }
 
     override func tableViewIsEmpty() -> Bool {
-        return sections.last!(currentView?.jobResults, FolderState(jobList: jobs, folderJob: folderJob)).rows == 0
+        return sections.last!(currentView, FolderState(jobList: jobs, folderJob: folderJob)).rows == 0
     }
 
     override func tableView(_: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
-        return sections[indexPath.section](currentView?.jobResults, FolderState(jobList: jobs, folderJob: folderJob)).rowHeight
+        return sections[indexPath.section](currentView, FolderState(jobList: jobs, folderJob: folderJob)).rowHeight
     }
 
     override func tableView(_: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? {

    }

    override func tableView(_: UITableView, numberOfRowsInSection section: Int) -> Int {
        return sections[section](currentView?.jobResults, FolderState(jobList: jobs, folderJob: folderJob)).rows
    }

    override func numberOfSections() -> Int {

    // MARK: - Tableview datasource and delegate

    override func tableView(_: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        return prepareCellWithIdentifier(identifier: sections[indexPath.section](currentView, FolderState(jobList: jobs, folderJob: folderJob)).identifier, indexPath: indexPath)
    }

    private func prepareCellWithIdentifier(identifier: String, indexPath: IndexPath) -> UITableViewCell {
