Avoid multiple attached event on ok button of the popup