add submit function and getParticipants function