added functionality for editing profiles and groups and for selecting
the profiles belonging to a group