@Override
        public void run() {
            Website2EbookmakerApplication app = ((Website2EbookmakerApplication)StartModalWindow.this.getApplication());
            app.getWebScraper().setRoot(url);
            app.getWebScraper().scrape();
            if (!url.startsWith("http://")) {
            	url = "http://" + url;
    		}
            app.getMainLayout().renameTree(url);
            TreeNode node = app.getWebScraper().getRootPageNode();
            List<TreeNode> children = new ArrayList<TreeNode>();
            children.addAll(node.getChildren());
            while (!children.isEmpty()) {
            	TreeNode child = children.remove(0);
            	if (child.getParent().getName().equals(url)) {
            		app.getMainLayout().addTreeItem(child.getParent().getName(), child.getName().replace(url + "/", ""));
            	}
            	else {
            		app.getMainLayout().addTreeItem(child.getParent().getName().replace(url + "/", ""), child.getName().replace(url + "/", ""));
            	}
            	children.addAll(child.getChildren());
            }
            app.getMainLayout().openTree(url);
            // synchronize changes over application
            synchronized (getApplication()) {
                done(url);
            }
        }