refining user groups add and edit