     func canAttendClass() {
         print("student can attend class \(currentClass.name)!")
         self.allowedToCheckIn = true
-        imageView3.backgroundColor = UIColor.greenColor()
-        attendClassView.backgroundColor = UIColor.greenColor()
+       
         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

        guard !currentClass.isFinished else {
            // class already done... do nothing
            print("class \(currentClass.name) already finished; can't attend")
            imageView3.hidden = true
            allowedToCheckIn = false
            return
        }
        
        guard currentClass.isStarted else {
            print("class \(currentClass.name) hasn't started yet")
            imageView3.hidden = true
            allowedToCheckIn = false
            imageView3.backgroundColor = UIColor.redColor()
            return
        }
        

        
        resetAttendView()
        setUpUI()
       
        setUpGestures()
    
        allowedToCheckIn = false
    }
    
    

    func setUpUI(){
     }
    
    func setUpGestures() {
      }
    
    //Attendance View Tapped.
    func attendanceViewTapped(){
