adapted to new form api after symfony upgrade