 
     func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
         
-        switch indexPath.row {
-        case 0:
-            addHeadline()
-        case 1:
-            addSubheadline()
-        case 2:
-            addBody()
-        case 3:
-            addImage()
-        default:
-            addBody()
-        }
+//        switch indexPath.row {
+//        case 0:
+//            addHeadline()
+//        case 1:
+//            addSubheadline()
+//        case 2:
+//            addBody()
+//        case 3:
+//            addImage()
+//        default:
+//            addBody()
+//        }
+//        dismissViewControllerAnimated(true, completion: { () -> Void in
+//
+//        })
     }
 
     func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

        return cell
    }
    
    override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
        for touch: AnyObject in touches {
            let location = touch.locationInView(moduleSelectorView)
            if moduleSelectorView.pointInside(location, withEvent: event) == false{
                self.delegate?.moduleSelectorViewControllerWasDismissed(self)
            }
            
        }
    }

}

        tableView.tableFooterView?.hidden = true
        tableView.scrollEnabled = false
        tableView.rowHeight = 50
    }
    
    @IBAction func closeButtonAction(sender: UIButton) {
