 			UIView.animate(withDuration: duration, animations: {
 
 				// Adjust page indicator view
-				if let _pageIndicatorFrame = pageIndicatorFrame {
-					self.pageIndicatorView?.frame = _pageIndicatorFrame
+				if let pageIndicatorFrame = pageIndicatorFrame {
+					self.pageIndicatorView?.frame = pageIndicatorFrame
 					self.pageIndicatorView?.reloadView(updateShadow: true)
 				}
 
 				// Adjust scroll scrubber slider
-				if let _scrollScrubberFrame = scrollScrubberFrame {
-					self.scrollScrubber?.slider.frame = _scrollScrubberFrame
+				if let scrollScrubberFrame = scrollScrubberFrame {
+					self.scrollScrubber?.slider.frame = scrollScrubberFrame
 				}
 
 				// Adjust collectionView

        // Register cell classes
        collectionView!.register(FolioReaderPage.self, forCellWithReuseIdentifier: reuseIdentifier)
        
        totalPages = book.spine.spineReferences.count
        
        // Configure navigation bar and layout
        automaticallyAdjustsScrollViewInsets = false
        extendedLayoutIncludesOpaqueBars = true

	fileprivate var currentWebViewScrollPositions = [Int: CGPoint]()
	fileprivate var currentOrientation: UIInterfaceOrientation?
    
    // MARK: - Init
    
    init() {
        super.init(nibName: nil, bundle: Bundle.frameworkBundle())
        initialization()
    }
    
    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        initialization()
    }
    
    /**
     Common Initialization
     */
    fileprivate func initialization() {
        
        if (readerConfig.hideBars == true) {
            self.pageIndicatorHeight = 0
        }
        
        totalPages = book.spine.spineReferences.count
        
        // Loading indicator
        let style: UIActivityIndicatorViewStyle = isNight(.white, .gray)
        loadingView = UIActivityIndicatorView(activityIndicatorStyle: style)
        loadingView.hidesWhenStopped = true
        loadingView.startAnimating()
        view.addSubview(loadingView)
    }
    
    // MARK: - View life cicle
    
    override open func viewDidLoad() {
        super.viewDidLoad()
        
        screenBounds = self.view.frame
        setPageSize(UIApplication.shared.statusBarOrientation)
        
