fix click event for ok button.