optimize create button if there's a single allowed child