         slideViewValue.htButtonSwitch = false
         bgText.text = "maccha"
         tempArray_title = slideViewValue.windowStoreTitle
-        mainView = true
+        mainView = 1
         windowView.reloadSections(NSIndexSet(indexesInRange: NSMakeRange(0, windowView.numberOfSections)), withRowAnimation: .Automatic)
         scrollLastestTab(true)
     }

                slideViewValue.bkButtonSwitch = false
                bgText.text = "history"
                tempArray_title = slideViewValue.historyTitle
                mainView = false
                windowView.reloadSections(NSIndexSet(indexesInRange: NSMakeRange(0, windowView.numberOfSections)), withRowAnimation: .Automatic)
                self.view.makeToast("History", duration: 0.8, position: CGPoint(x: self.view.frame.size.width-120, y: UIScreen.mainScreen().bounds.height-70))
                

    }
    var tempArray_title = [String]() //Temporary store array
    var style = ToastStyle() //initialise toast
    var mainView: Int = 0
    var trashButton: Bool = false
    var likeText: String = ""
    
