@Override
    public void onServerStatusChanged() {
        ServerStatusController.ServerStatus serverStatus = ServerStatusController.getServerStatus();
        switch (serverStatus) {
            case AVAILABLE:
                connectionStatus.setText("SERVER IS AVAILABLE");
                connectionStatus.setForeground(Color.GREEN);
                break;
            case NOT_AVAILABLE:
                connectionStatus.setText("SERVER IS NOT AVAILABLE");
                connectionStatus.setForeground(Color.RED);
                break;
        }
    }