Added functions to AgendaAdapter