updated the XFormPanel to support visibleWhen property