corrected group creation to allow parent dropdown to function correctly