Use an existing group to add an item

An existing group couldn't be reused because the form element didn't had a name.
Also added some default values for variables to reduce the number of errors in the log files