modified user and group controller