     }
     
     override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
-        if indexPath.row == 2 {
+        switch indexPath.row {
+        case 1:
+            attendanceViewTapped()
+        case 2:
             questionsViewTapped()
-        }
+        default:
+            print("tapped row: \(indexPath.row)")
+        }
+        
     }
     
 

        NSNotificationCenter.defaultCenter().removeObserver(self, name: Class.insideClassGeofenceNotification, object: nil)
        NSNotificationCenter.defaultCenter().removeObserver(self, name: Class.outsideClassGeofenceNotification, object: nil)
        currentClass.attendClass(self.student) { (confirmed) -> Void in
            print("woo \(self.view.window) \(self.view.hidden)")
            if self.view.window == nil {
                // view is currently not visible
                if UIApplication.sharedApplication().applicationState == UIApplicationState.Background {
                    // in background... notification
                    print("notification!")
                }else{
                    // assume foreground... alert
                    let alertController = UIAlertController(
                        title: "CheckIn",
                        message: "Woo hoo! You've checked in for class \(self.currentClass.name)",
                        preferredStyle: .Alert)
                    
                    let okAction = UIAlertAction(title: "OK", style: .Default, handler: nil)
                    alertController.addAction(okAction)
                    self.presentViewController(alertController, animated: true, completion: nil)
                }
            }
        }
    }

            let checkIncell:CheckInCollectionViewCell = collectionView.dequeueReusableCellWithReuseIdentifier("CheckInCell", forIndexPath: indexPath) as! CheckInCollectionViewCell
            checkIncell.backgroundColor = ThemeManager.theme().primaryYellowColor()
            checkIncell.setUpUI()
            checkIncell.setUpValuesForCheckIn(currentClass, allowedToCheckIn: allowedToCheckIn!,message: " ")            
            return checkIncell;
        }
        
