Try this:
Since you are working with an editor widget, you should use CondtructObjectFromClass instead of CreateWidget. Also, you add a child to the panel after the loop is executed, which means it only happens once with the last element of the array.