controller to create groups