         super.viewDidAppear(animated)
 
         delay(1) { [weak self] in
+            guard self?.presentedViewController == nil else {
+                return
+            }
+
             self?.messageTextView.becomeFirstResponder()
         }
     }

                    self?.performSegueWithIdentifier("showPickPhotos", sender: nil)
                    
                }, rejected: { [weak self] in
                        self?.alertCanNotAccessCameraRoll()
                })
                
            }
        
            pickActionController.addAction(albumAction)
            
            let cancelAction: UIAlertAction = UIAlertAction(title: NSLocalizedString("Cancel", comment: ""), style: .Cancel) { action -> Void in

            }
        
            pickActionController.addAction(cancelAction)
        
            self.presentViewController(pickActionController, animated: true, completion: nil)
        
            
        case 1:
            mediaImages.removeAtIndex(indexPath.item)
//            if !imageAssets.isEmpty {

                
                YepLocationService.turnOn()
                
            }, rejected: {
            })
        }
    }
