             actionSheet.addAction(cancelAction)
 
             let showCameraAction = UIAlertAction(title: "Take a pic", style: .Default, handler: { (action) in
-                let accessToCamera = AVCaptureDevice.authorizationStatusForMediaType(AVMediaTypeVideo) ==  AVAuthorizationStatus.Authorized //check if we have an access permissions to the camera
-                if(!accessToCamera) {
-                    self.showAlertActionForType(.Camera)
-                } else {
-                    self.showImagePickerWithSourceType(.Camera)
-                }
+                self.checkCamera()
             })
             actionSheet.addAction(showCameraAction)
             

        }
    }
    
    // MARK: - ImagePicker Delegate
    
    func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) {

                } else {
                    self.showImagePickerWithSourceType(.PhotoLibrary)
                }
            })
            actionSheet.addAction(showPhotoLibrary)
            navVC.presentViewController(actionSheet, animated: true, completion: nil)
