implemented edit/update and index actions for groups, with some shitty code though