     
     @IBAction func editPressed(_ sender: Any) {
         
-        if (UIDevice.current.orientation != UIDeviceOrientation.landscapeLeft) &&
-            (UIDevice.current.orientation != UIDeviceOrientation.landscapeRight) {
-            
-            if !isDeletePin{
-                UIView.animate(withDuration: 0.2, animations: {
-                    self.mapView.frame.origin.y -= self.editLabel.frame.height
-                    self.editLabel.frame.origin.y -= self.editLabel.frame.height
-                    self.isDeletePin = true
-                    self.editButton.title = "Done"
-                })
-            }else{
-                UIView.animate(withDuration: 0.2, animations: {
-                    self.mapView.frame.origin.y += self.editLabel.frame.height
-                    self.editLabel.frame.origin.y += self.editLabel.frame.height
-                    self.isDeletePin = false
-                    self.editButton.title = "Edit"
-                })
-            }
-        }
-    }
-    
-    }
+        if !isDeletePin{
+            UIView.animate(withDuration: 0.2, animations: {
+                self.mapView.frame.origin.y -= self.editLabel.frame.height
+                self.editLabel.frame.origin.y -= self.editLabel.frame.height
+                self.isDeletePin = true
+                self.editButton.title = "Done"
+            })
+        }else{
+            UIView.animate(withDuration: 0.2, animations: {
+                self.mapView.frame.origin.y += self.editLabel.frame.height
+                self.editLabel.frame.origin.y += self.editLabel.frame.height
+                self.isDeletePin = false
+                self.editButton.title = "Edit"
+            })
+        }
+    }
+}
 
 //MARK: TravelLocationsViewController: (MKMapViewDelegate)
 

        if isDeletePin {
            self.mapView.removeAnnotation(view.annotation!)
            fetchedResultsController!.managedObjectContext.delete(pin!)
        }else{
            self.coordinate = view.annotation?.coordinate
            self.performSegue(withIdentifier: "photoAlbum", sender: self)

                case .delete:
                    let pinCoordinate = anObject as! Pin
                    let coordinate = CLLocationCoordinate2D(latitude: pinCoordinate.latitude, longitude: pinCoordinate.longitude)
                default:
                    break
            }
