Change ngshow to ngswitch in componentFormPanel