update jquery event binding in modal popup code