private void agendaItemMenu(int itemid, int meetingId) throws IOException, ClassNotFoundException {
        String opt = "";
        while (!("0".equals(opt))) {

            System.out.println("You are now in the item " + itemid + " room\n");
            System.out.println("You may now receive messages from other members of the item at anytime " + itemid + " room\n");
            System.out.println("Please select one of the following options (0 to quit):\n");
            System.out.println("1-Add Message\n" +
                    "2-Add key decision\n" +
                    "3-Assign task to user\n\n");

            System.out.println(":::Chat log:::\n");
            Message listChat = new Message(username_logged, null, null, "checkchatmessages");
            listChat.dataint = itemid;
            sendOut(listChat);
            listChat = (Message) in.readObject();
            System.out.println(listChat.data);
            System.out.println("::::::::::::::\n");


            //TODO colocar um metodo para conseguir ver o chat log todo

            opt = scs.nextLine();
            switch (opt) {


                //add message
                case "1":

                    System.out.println("Insert your message to add to the discussion:\n");
                    Message chatMsg = new Message(username_logged, null, null, "addchatmessage");
                    chatMsg.data = scs.nextLine();
                    chatMsg.dataint = itemJoined;
                    chatMsg.dataint2 = meetingId;
                    sendOut(chatMsg);
                    chatMsg = (Message) in.readObject();
                    if (chatMsg.result) {
                        System.out.println("::posted::");

                    } else {
                        System.out.println("An error occured. Please try again");
                    }
                    break;

                //add key decision

                case "2":
                    System.out.println("Add a key decision to this item:\n");
                    Message keyMsg = new Message(username_logged, null, null, "addkeydecision");
                    keyMsg.keydecision = scs.nextLine();
                    keyMsg.dataint = itemJoined;
                    sendOut(keyMsg);
                    keyMsg = (Message) in.readObject();
                    if (keyMsg.result) {
                        System.out.println("::Added::");
                    } else {
                        System.out.println("An error occured. Please try again");
                    }
                    break;


                //assign action

                case "3":
                    Message members = new Message(username_logged, null, null, "listmembers");
                    sendOut(members);
                    members = (Message) in.readObject();
                    System.out.println(members.data);
                    Message assignAction = new Message(username_logged, null, null, "assignaction");
                    assignAction.dataint = meetingId;
                    System.out.println("User (ID):");
                    assignAction.dataint2 = sci.nextInt();

                    System.out.println("Task:");
                    assignAction.data = scs.nextLine();
                    sendOut(assignAction);
                    assignAction = (Message) in.readObject();
                    if (assignAction.result) {
                        System.out.println("\nTask assigned to the selected user!\n");


                    } else {
                        System.out.println("An error occured. Please try again");
                    }

                    break;

            }

        }


    }