public void InitView() {
        selectedRange = DataRange.THREEMONTH;
        selectedChart = "line";
        pane = new VBox();
        lineChart = LinearChartManager.linear();
        lineChart.setTitle("");

        table = new TableView();

        try {
            table.getItems().addAll(NetworkManager.show(DataType.FOREX));
        } catch (Exception e) {
            System.out.println("Something went wrong when populating market indicisies view");
        }

        table.getColumns().addAll(initColumns());

        table.setRowFactory(tv -> {
            TableRow<Index> row = new TableRow<Index>();
            row.setOnMouseClicked(event -> {
                if (event.getClickCount() == 2 && (!row.isEmpty())) {
                    Index rowData = row.getItem();
                    selectedIndex = rowData;
                    //System.out.println(rowData);
                    try {
                        lastData = NetworkManager.showMore(rowData.getSymbol(), selectedRange);
                        System.out.println(lastData.length);

                        if(selectedChart.equals("line")) {
                            lineChart.getData().clear();
                            lineChart.setTitle(rowData.getName());
                            LinearChartManager.addSeries(lineChart, lastData, selectedRange);
                            if (pointerType!=null && pointerType != "hide") {
                                OnPointerChange();
                            }
                        } else {
                            CandleChart.generateData(lastData);
                            candleChart = new CandleChart();
                            CandleChart.CandleStickChart chart = candleChart.createChart();
                            chart.setTitle(rowData.getName());

                            pane.getStylesheets().add("resources/css/CandleStickChart.css"); 
                            borderPane.setCenter(chart);
                           }

                    } catch (Exception ex) {
                        System.out.println("Error while downloading indicise " + ex.toString());
                    }
                }
            });
            return row;
        });

        //table.setItems(initRows());
        table.setEditable(false);

        VBox vBox = (VBox) pane;

        borderPane = new BorderPane();
        borderPane.setCenter(lineChart);
        borderPane.setRight(addMenuButtons());

        vBox.getChildren().add(table);
        vBox.getChildren().add(borderPane);
    }