} else {
                                        appointmentInfoMap.put(appointment.getId(), appointmentInfo);
                                        if (appointmentIdsToView.containsKey(appointmentInfo.getId())) { //the view is already there, we just need to update it
                                            makeInviteEntry(appointmentInfo, appointmentIdsToView.get(appointmentInfo.getId()));
                                        } else { //we add the new appointment and update the layout