@Override
	public void start(Stage primaryStage) {

		String str = "/ciscoECGFrontend/ciscoECG.fxml";

		if (getClass().getResource(str)!= null) {
			System.out.println("Welcome to Cisco Orchestration");
		} else {
			System.err.println("There is an issue with the fxml file");
		}

		// This is a logger  function - you would need this if you want to save/log data
		/*logger.debug("this is a debug log message");
		logger.info("this is a information log message");
		logger.warn("this is a warning log message");*/

		try {
			@SuppressWarnings("static-access")
			Parent root = new FXMLLoader().load (getClass().getResource(str));
			Scene scene = new Scene(root, 2500, 1300);
			scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
			primaryStage.setTitle("Welcome to Cisco Network Topology Autmation"); 
			primaryStage.setResizable(true);
			primaryStage.setScene(scene);
			//primaryStage.setFullScreen(true);
			primaryStage.sizeToScene(); 
			primaryStage.show();




			//A button with an empty text caption.
			Button button1 = new Button();
			//A button with the specified text caption.
			Button button2 = new Button("Accept");




			//TODO:sandeep Need to NOT hardcode 
			switchInfo = new Button[20];
			n5kSwitch = new ToggleButton[10]; //limiting upto 10 toggle switches
			tabPane1 = new TabPane[10];

			ObservableList<Node> child = root.getChildrenUnmodifiable();

			int bI = 0; // Button incrementor
			int tbI = 0; // Button incrementor
			int tpI = 0;

			for (int i=0; i<child.size();i++) {
				if (child.get(i).getClass() == Button.class) {
					switchInfo[bI] = (Button) child.get(i);
					System.out.println(switchInfo[bI].getText());

					Tooltip tooltipForSwitch = new Tooltip();
					tooltipForSwitch.setText("This is  switch \n");
					tooltipForSwitch.setFont(new Font("Arial", 16));
					switchInfo[bI].setTooltip(tooltipForSwitch);


					bI++;
				} else if (child.get(i).getClass() == TextField.class) {
					TextField tmpTF = (TextField) child.get(i);
					if (tmpTF.getText().contains("vpc")) {
						vpcLink = tmpTF;
						System.out.println(vpcLink.getText());
					} else {
						System.out.println("Some other text\n");
					}
				} else if (child.get(i).getClass() == ToggleButton.class) {
					n5kSwitch[tbI] = (ToggleButton) child.get(i);
					Tooltip tooltipForSwitch = new Tooltip();
					tooltipForSwitch.setText("This is N5K switch \n");
					tooltipForSwitch.setFont(new Font("Arial", 16));
					n5kSwitch[tbI].setTooltip(tooltipForSwitch);
					n5kSwitch[tbI].setText("Hello sandeep");
					tbI++;
				} else if (child.get(i).getClass() == TabPane.class) {
					tabPane1[tpI] = (TabPane) child.get(i);
					Tooltip tooltipForSwitch = new Tooltip();
					tooltipForSwitch.setText("This is the System GUI tool \n");
					tooltipForSwitch.setFont(new Font("Arial", 16));
					tabPane1[tpI].setTooltip(tooltipForSwitch);
					ObservableList<Node> tabChild = tabPane1[tpI].getChildrenUnmodifiable();
					for (int j =0; j< tabChild.size();j++) {
						System.out.println ("--->" + tabChild.getClass().toString());
						Node tabChild1  =  tabChild.get(j);
						
						System.out.println (tabChild1.toString());
						/*
						ObservableList<Node> tabChild2 = tabChild1.();
						for (int l=0;l<tabChild2.size();l++) {
							System.out.println (tabChild2.toString());
							System.out.println (((Parent) tabChild2).getChildrenUnmodifiable().toString());
						} */
					}
					System.out.println (tabChild.toString());
					/*    int l = 1;
				    for (final Tab tab: tabPane1[tpI].getTabs()) {
				      placeButtonInTab("ButtonInTab " + i, tab);
				      l++;
				    } */
					tpI++;
				}
				else {
					System.out.println("This is what was found:" + child.get(i).getClass().toString());
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}