     }
     
     func InitCollectionView() {
+        collectionView.removeFromSuperview()
+        refresh_controll = UIRefreshControl()
+        
         let w = 150.0 as CGFloat
         let h = w*1.5 as CGFloat
         let margin = (self.view.frame.width - w*2) / 4

    let cellId = "itemCell"
    var preViewName = "Social"
    var collectionView = UICollectionView(frame: CGRect(), collectionViewLayout: UICollectionViewLayout())
    var movies: [MovieRecentlly.Data] = []
    
    override func viewDidLoad() {

        collectionView.delegate = self
        collectionView.dataSource = self
        collectionView.autoresizingMask = UIViewAutoresizing(rawValue: UIViewAutoresizing.RawValue(UInt8(UIViewAutoresizing.flexibleHeight.rawValue) | UInt8(UIViewAutoresizing.flexibleWidth.rawValue)))
        collectionView.refreshControl = refresh_controll
        refresh_controll.addTarget(self, action: #selector(self.refresh(sender:)), for: .valueChanged)
        self.view.addSubview(collectionView)
    }
    
    func refresh(sender: UIRefreshControl) {
        refresh_controll.beginRefreshing()
        CallGetRecentlyAPI()
    }
    
    func CallGetRecentlyAPI() {
