update ok and cancel in the timer editor