make sure selected groups and courses show up in the form