Working on add and edit functions for groups