Add missing break statement in case SEPARATOR : using a separator was also inserting a radio button...
Re-formatted