@Override
public void handleElementButtonClick(String buttonName, int mouseButton) {
if (buttonName.equals("SetName")) {
PacketHandler.sendToServer(new PacketSocial().addByte(PacketTypes.ADD_FRIEND.ordinal()).addString(tbName.getText()));
} else if (buttonName.equals("RemoveName")) {
PacketHandler.sendToServer(new PacketSocial().addByte(PacketTypes.REMOVE_FRIEND.ordinal()).addString(tbName.getText()));
} else if (buttonName.equals("OnlineUp")) {
taOnlineList.scrollDown();
} else if (buttonName.equals("OnlineDown")) {
taOnlineList.scrollUp();
} else if (buttonName.equals("FriendsUp")) {