     // MARK: - UITableViewDataSource
     
     public func numberOfSectionsInTableView(tableView: UITableView) -> Int {
-        return 1
+        return 2
     }
     
     public func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-        var numberOfRows = actions.count
-        if previewsPhotos {
-            numberOfRows += 1
-        }
-        
-        return numberOfRows
+        if section == 0 {
+            return 1
+        }
+        
+        return actions.count
     }
     
     public func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
-        if previewsPhotos && indexPath.row == 0 {
-            if (enlargedPreviews) {
-                return tableViewEnlargedPreviewRowHeight
-            }
-            
-            return tableViewPreviewRowHeight
+        if indexPath.section == 0 {
+            if assets.count > 0 {
+                return enlargedPreviews ? tableViewEnlargedPreviewRowHeight : tableViewPreviewRowHeight
+            }
+            
+            return 0
         }
         
         return tableViewRowHeight
     }
     
     public func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
-        if indexPath.row == 0 && previewsPhotos {
+        if indexPath.section == 0 {
             let cell = tableView.dequeueReusableCellWithIdentifier(NSStringFromClass(ImagePreviewTableViewCell.self), forIndexPath: indexPath) as! ImagePreviewTableViewCell
             cell.collectionView = collectionView
             

        
        presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
        
        let buttonIndex = buttonIndexForRow(indexPath.row)
        actions[buttonIndex].handle(numberOfPhotos: selectedPhotoIndices.count)
    }
    
    // MARK: - UICollectionViewDataSource

        cell.textLabel?.textAlignment = .Center
        cell.textLabel?.textColor = tableView.tintColor
        cell.textLabel?.font = UIFont.systemFontOfSize(21)
        cell.textLabel?.text = actions[indexPath.row].title(selectedPhotoIndices.count)
        
        return cell
    }
