made ok button disabled,api changed to stoutlet