             prntRef.updateChildValues(["tolvEtt": "Opptatt"])
             
         } else if roomList[myIndex].tolvEtt! == "Opptatt" {
+            
             
             prntRef.updateChildValues(["tolvEtt": "Ledig"])
             

        if roomList[myIndex].tiElleve == "Ledig" {
            
            prntRef.updateChildValues(["tiElleve": "Opptatt"])
            
        } else if roomList[myIndex].tiElleve == "Opptatt" {
            
            prntRef.updateChildValues(["tiElleve": "Ledig"])
        
        } else {
            print("test")

        let alert = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert)
        
        
        alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: { (action) in
            alert.dismiss(animated: true, completion: nil)
            
            if self.index == 0 {
