public void addControlLogic() {
	addButton.addActionListener(new ActionListener() {
	    public void actionPerformed(ActionEvent e) {
		if (commandPanel != null) {
		    String filter = commandPanel.getCommandLine();
		    chainPanel.addFilter(filter);
		}
	    }
	});
	insertAboveButton.addActionListener(new ActionListener() {
	    public void actionPerformed(ActionEvent e) {
		if (commandPanel != null) {
		    String filter = commandPanel.getCommandLine();
		    chainPanel.insertAbove(filter);
		}
	    }
	});
	insertBelowButton.addActionListener(new ActionListener() {
	    public void actionPerformed(ActionEvent e) {
		if (commandPanel != null) {
		    String filter = commandPanel.getCommandLine();
		    chainPanel.insertBelow(filter);
		}
	    }
	});
	replaceButton.addActionListener(new ActionListener() {
	    public void actionPerformed(ActionEvent e) {
		if (commandPanel != null) {
		    String filter = commandPanel.getCommandLine();
		    chainPanel.replaceFilter(filter);
		}
	    }
	});
	deleteButton.addActionListener(new ActionListener() {
	    public void actionPerformed(ActionEvent e) {
		chainPanel.deleteFilter();
	    }
	});
    }