all add and edition functions done for users and groups