         toolActionButton.tintColor = .whiteColor()
         
         // gesture
+        tapGesture = UITapGestureRecognizer(target: self, action: #selector(SKPhotoBrowser.closeButtonPressed(_:)))
+        view.addGestureRecognizer(tapGesture)
         panGesture = UIPanGestureRecognizer(target: self, action: #selector(SKPhotoBrowser.panGestureRecognized(_:)))
         panGesture.minimumNumberOfTouches = 1
         panGesture.maximumNumberOfTouches = 1

    private var toolNextButton: UIBarButtonItem!
    private var pagingScrollView: UIScrollView!
    private var panGesture: UIPanGestureRecognizer!
    // MARK: close button
    private var closeButton: UIButton!
    private var closeButtonShowFrame: CGRect!

    }
    
    public func toggleControls() {
        setControlsHidden(/*!areControlsHidden()*/false, animated: true, permanent: false)
    }
    
    public func setControlsHidden(hidden: Bool, animated: Bool, permanent: Bool) {
