private void saveProperties() {
        try{
            controller.storePropertiesToFile(propertyFile);
        } catch (Exception e){
            JOptionPane.showMessageDialog(this,
                    "Can't save properties.",
                    "Properties warning",
                    JOptionPane.WARNING_MESSAGE);

        }
    }