@FXML
 private void handleLogOut(ActionEvent event) throws IOException {
   connectionManager.handleExit(model.getClientUser().getUsername());
   connectionManager.getMessageListeners().clear();
   connectionManager.getSocket().close();
   presentationController.showLoginLayout();
 }
 @FXML
 private void handleSendButton() {
   if (inputField.getLength() < 1) {
     return;
   }
   String message = inputField.getText();
   printMessageToChat(model.getClientUser().getUsername(), message);
   inputField.setText("");
   connectionManager.sendChatMessage(model.getClientUser().getUsername(), message);
 }
 @FXML
 private void handleRoomSelect() {
   if (!chatrooms.isEmpty()
       && chatRoomList.getSelectionModel().getSelectedItem().toString() != null) {
     roomName.setText(
         "Chatroom: " + chatRoomList.getSelectionModel().getSelectedItem().toString());
     connectionManager.joinRoom(
         model.getClientUser().getUsername(),
         chatRoomList.getSelectionModel().getSelectedItem().toString());
     roomsPane.setExpanded(false);
     usersPane.setExpanded(true);
   }
 }