             
             //back to original tab
             bookmarkBackToNormal()
-            self.view.makeToast("Likes are clear...", duration: 0.8, position: CGPoint(x: self.view.frame.size.width-120, y: UIScreen.mainScreen().bounds.height-70))
+            view.makeToast("Likes are clear...", duration: 0.8, position: CGPoint(x: view.frame.size.width-120, y: UIScreen.mainScreen().bounds.height-70))
         } else if(mainView == 1) {
             //reset main arrays
             slideViewValue.windowStoreTitle.removeAll()

            slideViewValue.readActions = false
            slideViewValue.readRecover = false
            slideViewValue.readActionsCheck = false
            self.sgButton.setImage(UIImage(named: "Read"), forState: UIControlState.Normal)
            
            //open tabs in background
            WKWebviewFactory.sharedInstance.webView.loadRequest(NSURLRequest(URL:NSURL(string: slideViewValue.windowStoreUrl[slideViewValue.windowCurTab])!))
            slideViewValue.scrollPositionSwitch = true
            self.revealViewController().rightRevealToggleAnimated(true)
         }
    }
    @IBAction func deleteAllTab(sender: AnyObject) {

    }
    var tempArray_title = [String]() //Temporary store array
    var style = ToastStyle() //initialise toast
    var mainView: Int = 0 //0: History view, 1: Main view, 2: Likes view
    var trashButton: Bool = false
    var likeText: String = ""
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        //define basic style of slide view
        view.backgroundColor = UIColor(netHex:0x2E2E2E)
        toolbar.barTintColor = UIColor(netHex:0x2E2E2E)
        toolbar.clipsToBounds = true
        view.layer.cornerRadius = 5 //set corner radius of uiview
