switch ok and cancel for JB Ui