             if self.index == 0 {
                 
                 self.confirmtiElleve()
-                print(userID)
-                   }
-            
+                
+            }
+                
             else if self.index == 1 {
                 self.confirmelleveTolv()
-
+                
             }
                 
             else if self.index == 2 {

        
    }
    


    

    

    
    
    
   
    
    // method to run when table view cell is tapped
    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
                

        
        if indexPath.row == 0 {
            index = indexPath.row
            if roomList[myIndex].tiElleve! == "Opptatt" {
                createAlert(title: "Rommet er opptatt", message: "Booket av " + roomList[myIndex].booketAvTiElleve!)
            }
            else {
                createAlert(title: "Booke dette rommet?", message: roomList[myIndex].name!);
            }
        
        }
        else if indexPath.row == 1 {
            index = indexPath.row
        createAlert(title: "Booke dette rommet?", message: roomList[myIndex].name!);
          
        }
        
        else if indexPath.row == 2 {
            index = indexPath.row
        createAlert(title: "Booke dette rommet?", message: roomList[myIndex].name!);
        }
        
        else if indexPath.row == 3 {
            index = indexPath.row
            createAlert(title: "Booke dette rommet?", message: roomList[myIndex].name!);

            index = indexPath.row
            createAlert(title: "Booke dette rommet?", message: roomList[myIndex].name!);
        }
            
        else if indexPath.row == 5 {
            index = indexPath.row
            createAlert(title: "Booke dette rommet?", message: roomList[myIndex].name!);
        }
        
        
        
        
        
        
        
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
