private void createEvents() {

		btnChords.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				switchToChords();
			}
		});

		btnLyrics.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				switchToLyrics();
			}
		});

		btnSave.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if(titleTextField.getText().isEmpty()){
					lblError.setText("Insert a song title.");
				}
				else if(songLyricText.getText().isEmpty()){
					lblError.setText("Insert the lyrics of the song.");
				} else {
					if (createSong()){
						dispose();
					} else {
						if (alert == null || alert.isClosed()) {
							alert = new MessageFrame(desktopPane);
							alert.setMessage("Unable to connect to server, please try again later.");
						}
					}
				}
			}
		});

		btnCancel.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});

		genresComboBox.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {

				@SuppressWarnings("unchecked")
				JComboBox<Genre> comboBox = (JComboBox<Genre>) e.getSource();
				Genre selected = (Genre) comboBox.getSelectedItem();
				addGenre(selected);
			}
		});
		
		tagsComboBox.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {

				@SuppressWarnings("unchecked")
				JComboBox<Tag> comboBox = (JComboBox<Tag>) e.getSource();
				Tag selected = (Tag) comboBox.getSelectedItem();
				addTag(selected);
			}
		});
	}