Added indices, default foundation,  fixed trainer button when the paticipant is already a trainer