                 dispatch_async(dispatch_get_main_queue(), {                                         //run in the main GUI thread
                     MBProgressHUD.hideAllHUDsForView(self.view, animated: true)
                 })
-
+                
             }
             break
             

            dispatch_async(dispatch_get_main_queue(), {                                         //run in the main GUI thread
                MBProgressHUD.hideAllHUDsForView(self.view, animated: true)
            })

            break
        }
        
//        dispatch_async(dispatch_get_main_queue(), {                                         //run in the main GUI thread
//            MBProgressHUD.hideAllHUDsForView(self.view, animated: true)
//        })

    }
    
    //At detail Click

        case DisplayedMenu.Current:
            titleText = self.iterations[indexPath.row].name
            detailText = NSString(format: "%@ - %@", self.iterations[indexPath.row].startDate, self.iterations[indexPath.row].endDate) as String
            
            cell!.accessoryType = UITableViewCellAccessoryType.None
            break
        case DisplayedMenu.Future:
            titleText = self.iterations[indexPath.row].name
            detailText = NSString(format: "%@ - %@", self.iterations[indexPath.row].startDate, self.iterations[indexPath.row].endDate) as String
            
            cell!.accessoryType = UITableViewCellAccessoryType.None
            break
            
