added modal ok button init function