public void refresh() {
        for (int i = 0; i < eList.size(); i++)
            eList.get(i).refresh();
        for (int i = 0; i < pane.getComponentCount(); i++) {
            pane.getComponent(i).revalidate();
            pane.getComponent(i).repaint();
        }
        buttonPane.setBackground(nightMode?new Color(64,64,64):new Color(192,192,192));
        eventsPane.setBackground(nightMode?new Color(64,64,64):new Color(192,192,192));
        pane      .setBackground(nightMode?new Color(64,64,64):new Color(192,192,192));
        pane.revalidate();
        pane.repaint();

    }