added grouping to the  _form method