@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource() == userPrivateMessageItem) {
			String toUser = usersOnlineList.getSelectedValue();
			openChatWindow(toUser, getUserIdByName(toUser), true);
		} else if(e.getSource() instanceof JButton) {
			closeTab(((JButton) e.getSource()).getActionCommand());
		}
	}