added child count before adding option dropdown