starting reading fxml and functionality