refactored add and remove groups from controller to group model