 	func pageViewController(pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [AnyObject], transitionCompleted completed: Bool) {
 		let pageVc = pageViewController.viewControllers.first as! ManagedIndexedViewViewController
 		currentIndex = pageVc.index
+		updateTitle()
 	}
 
 	// MARK: - CoreData


class GalleryDetailPageViewController : UIPageViewController, UIPageViewControllerDataSource,UIPageViewControllerDelegate {

	private var renderQueue = dispatch_queue_create("com.zakariya.squizit.GalleryDetailPageViewControllerRenderQueue", nil)
	private var exportQueue = dispatch_queue_create("com.zakariya.squizit.GalleryDetailPageViewControllerExportQueue", nil)
	private var drawingBackgroundColor = SquizitTheme.paperBackgroundColor()

	var store:GalleryStore!
	var initialIndex:Int = 0 {

		} else {
			self.navigationItem.rightBarButtonItem = shareAction
		}
	}

	override func viewDidAppear(animated: Bool) {
		super.viewDidAppear(animated)
		updatePageControlVisibility()
	}

	private func vend(index:Int)->ManagedIndexedViewViewController {
