     }
     
     override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
-        if parsed {
-            var cell = tableView.cellForRowAtIndexPath(indexPath) as! CalendarTableViewCell
-            var message = ""
-            if (events[indexPath.row].location != ""){
-                message = "\nDuration\n " + duration + "\n\nLocation\n" + events[indexPath.row].location
-            } else {
-                message = "\nDuration\n " + duration
-            }
+        var cell = tableView.cellForRowAtIndexPath(indexPath) as! CalendarTableViewCell
+        var message = ""
+        if (events[indexPath.row].location != ""){
+            message = "\nDuration\n " + duration + "\n\nLocation\n" + events[indexPath.row].location
+        } else {
+            message = "\nDuration\n " + duration
+        }
             
             
-            let alert = UIAlertController(title: cell.titleLabel.text, message: message, preferredStyle: .Alert)
+        let alert = UIAlertController(title: cell.titleLabel.text, message: message, preferredStyle: .Alert)
             
-            let defaultAction = UIAlertAction(title: "OK", style: .Default) {(action) -> Void in
+        let defaultAction = UIAlertAction(title: "OK", style: .Default) {(action) -> Void in
                 
-                self.tableView.deselectRowAtIndexPath(indexPath, animated: true)
+            self.tableView.deselectRowAtIndexPath(indexPath, animated: true)
                 
-            }
+        }
             
-            alert.addAction(defaultAction)
+        alert.addAction(defaultAction)
             
-            if ThemeManager.currentTheme() == ThemeType.Black {
-                alert.view.tintColor = UIColor.blackColor();
-            }
+        if ThemeManager.currentTheme() == ThemeType.Black {
+            alert.view.tintColor = UIColor.blackColor();
+        }
             
-            presentViewController(alert, animated: true, completion: nil)
-        }
+        presentViewController(alert, animated: true, completion: nil)
         
     }
     

    var day = 1
    var events: [GCalEvent] = []
    var duration = ""
    var parsed = false

    override func viewDidLoad() {
        super.viewDidLoad()

                    return index
                }
            }
            return events.count - 1
        } else {
            var fast = 0
            while fast < events.count {
                var eventDate = events[fast].startDate
                if eventDate.isEqualToDate(NSDate()){
                    return fast
                }
                if Utils.isLessDate(NSDate(), date2: eventDate){
                    return fast - 1
                }
                fast += 1
            }
            return events.count - 1
        }
        
        return 9
