         slideViewValue.windowStoreTitle.append("")
         slideViewValue.windowStoreUrl.append("about:blank")
         slideViewValue.scrollPosition.append("0.0")
-        slideViewValue.windowCurTab = slideViewValue.windowCurTab + 1
+        slideViewValue.windowCurTab = slideViewValue.windowStoreTitle.count - 1
         windowView.setTitle(String(slideViewValue.windowStoreTitle.count), forState: UIControlState.Normal)
         if(slideViewValue.shortcutItem == 1) {
             loadRequest("about:blank")

            slideViewValue.windowStoreUrl.append(urlStr)
            
            //set current window as the latest window
            slideViewValue.windowCurTab = slideViewValue.windowCurTab + 1
            
            //update windows count
            self.windowView.setTitle(String(slideViewValue.windowStoreTitle.count), forState: UIControlState.Normal)

                        //initial y point
                        slideViewValue.scrollPosition.append("0.0")
                        
                        slideViewValue.windowCurTab = slideViewValue.windowStoreTitle.count - 1
                    }
                    slideViewValue.scrollPositionSwitch = false
                }
