 open class MediaItemsController: InfiniteCollectionViewController {
   public class var SegueIdentifier: String { return  "MediaItems" }
 
-  public var callSeque = false
+  //public var callSeque = false
 
   var CellIdentifier: String { return  "MediaItemCell" }
   var HeaderViewIdentifier: String { return  "MediaItemsHeader" }
   var localizer = Localizer("com.rubikon.TVSetKit")
 
-  static public func instantiate() -> Self {
-    let bundle = Bundle(identifier: "com.rubikon.TVSetKit")!
-
-    return AppStoryboard.instantiateController("Player", bundle: bundle, viewControllerClass: self)
+  static public func instantiate(storyboardId: String="Player", bundleIdentifier: String="com.rubikon.TVSetKit") -> Self {
+    let bundle = Bundle(identifier: bundleIdentifier)!
+
+    return AppStoryboard.instantiateController(storyboardId, bundle: bundle, viewControllerClass: self)
   }
 
   override open func viewDidLoad() {

      switch identifier {
        case MediaItemsController.SegueIdentifier:
          if let destination = segue.destination.getActionController() as? MediaItemsController {
            destination.callSeque = callSeque

            let newAdapter = adapter.clone()
            newAdapter.selectedItem = mediaItem

        performSegue(withIdentifier: AudioItemsController.SegueIdentifier, sender: view)
      }
      else {
        var destination: MediaItemsController!

//        if navigationController != nil {
//          destination = MediaItemsController.instantiate(storyboardId: "Etvnet-iOS", bundleIdentifier: "com.rubikon.EtvnetSite-iOS")
//
//        }
//        else {
//          destination = MediaItemsController.instantiate()
//        }

        destination = MediaItemsController.instantiate()

        let newAdapter = adapter.clone()
        newAdapter.selectedItem = mediaItem

        newAdapter.parentId = mediaItem.id
        newAdapter.parentName = mediaItem.name
        newAdapter.isContainer = true

        destination!.adapter = newAdapter

        destination.collectionView?.collectionViewLayout = adapter.buildLayout()!

        if navigationController != nil {
          navigationController!.pushViewController(destination, animated: true)
        }
        else {
          self.present(destination, animated: true)
        }
      }
