added array controls
updated toogle regex