                 case .title:
                     
                     let indexPath = NSIndexPath(forRow: index, inSection: 0)
-                    let cell = tableView.cellForRowAtIndexPath(indexPath) as! EditTableViewCell
+                    
                     let indexPathRow = indexPath.row
                     
 //                    if let cell = allArray[indexPathRow] as? EditTableViewCell {
-                    
+                    if let cell = tableView.cellForRowAtIndexPath(indexPath) as? EditTableViewCell {
                         // Trip Title Cell
                         let title = cell.titleTextField.text ?? ""
                         let country = cell.countryTextField.text ?? ""

                            }
                        })
                    } else { return }
                    
                case .accommodation:
                    
                    let indexPath = NSIndexPath(forRow: index, inSection: 0)
                    //                    let cell = tableView.cellForRowAtIndexPath(indexPath) as! AccommodationTableViewCell
                    let indexPathRow = indexPath.row
                    
                    guard let selectedAccommodation = allArray[indexPathRow] as? Accommodation else {
                        fatalError()
                    }
                    let cell = allArray[indexPathRow] as! AccommodationTableViewCell
                    
                    let accommodationID = selectedAccommodation.accommodationID
                    
                    // Accommodation Cell
                    let name = cell.nameLabel.text ?? ""
                    //                    let phone = cell.phoneLabel.text ?? ""

                        databaseRef.updateChildValues(updatedTitleOnFire)
                        
                        
                    } else { return }
                    
                case .transportation:
                    
                    let indexPath = NSIndexPath(forRow: index, inSection: 0)
                    
                    let indexPathRow = indexPath.row
                    
                    guard let selectedTransportation = allArray[indexPathRow] as? Transportation else {
                        fatalError()
                    }
                    
//                    let cell = allArray[indexPathRow] as! TransportationTableViewCell
                    if let cell = tableView.cellForRowAtIndexPath(indexPath) as? TransportationTableViewCell {
                    let transportationID = selectedTransportation.transportationID
                    
                    // Transportation Cell
