assign groups to user in user add, adding some logic and markup/view