add separate fxml for thread