@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource() == register){
			contentPanelLayout.show(panel, "registration");
		}
		if(e.getSource() == logOff){
			frameRef.setContentPane(new Login(frameRef));
		}
		if(e.getSource() == searchBooks){
			contentPanelLayout.show(panel, "searchBooks");
		}
		if(e.getSource() == searchItems){
			contentPanelLayout.show(panel, "searchItems");
		}
	}