Completed controller with add/remove groups actions.