private void createEvents() {

		btnUploadSong.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				EventQueue.invokeLater(new Runnable() {
					public void run() {
						try {
							UploadSongFrame frame = new UploadSongFrame(
									indexPanel, controller);
							frame.setVisible(true);
						} catch (Exception e) {
							e.printStackTrace();
						}
					}
				});
			}
		});

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

			}
		});

		btnSync.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				try {
					mainFrame.getClient().setSync(true);
					mainFrame.getClient().sendToServer("data");
				} catch (IOException e1) {
					if (alert == null || alert.isClosed()) {
						alert = new MessageFrame(mainFrame.getDesktopPane1());
						alert.setMessage("Unable to connecto to the server at this time. Try again later.");
					}
				}
			}
		});

		btnLogout.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				try {
					mainFrame.getClient().closeConnection();
					mainFrame.switchToLoginPanel();
				} catch (IOException e1) {
					e1.printStackTrace();
				}
			}
		});

	}