updates form for groups